<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="/sh/themes/metro/easyui.css">
    <link rel="stylesheet" type="text/css" href="/sh/themes/mobile.css">
    <link rel="stylesheet" type="text/css" href="/sh/themes/icon.css">
    <script type="text/javascript" src="/sh/js/jquery.min.js"></script>
    <script type="text/javascript" src="/sh/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/sh/js/jquery.easyui.mobile.js"></script>
    <script type="text/javascript" src="/sh/js/comm.js"></script>
    <script type="text/javascript" src="/sh/js/mobile/noticeList.js"></script>
    <title>盛铧登录</title>
</head>
<body style="height: 45%;">
<div style="border: none;">
    <div th:if="${#lists.size(data)<=0}"
         style="margin:10px auto;text-align:center;
         color: #ff8080;">未查找到记录！</div>
    <div th:if="${#lists.size(data)>0}">
    <div th:each="notice:${data}" style="width: 100%;">
        <div style="float: left; width: 95%;">
            <input type="checkbox" th:checked="${notice.isShow}"
               disabled="disabled" onclick="clickCB(this)" style="float:left;"/>
            <span th:text="'标题：'+${notice.noticeTitle}" style="float: left;"></span>
            <div style="float: left;margin-left: 15px;">
                <a href="javascript:void(0)" class="easyui-linkbutton"
                plain="true" outline="true" th:onclick="'delNT('+${notice.id}+')'"
                iconCls="icon-remove">删除</a>
            </div>
            <div th:if="${notice.isShow eq 1}" style="float: left;margin-left: 5px;">
            <a href="javascript:void(0)" class="easyui-linkbutton"
                plain="true" outline="true" th:onclick="'hideNT('+${notice.id}+')'"
                iconCls="icon-remove">隐藏</a>
        </div>
            <div th:if="${notice.isShow eq 0}" style="float: left;margin-left: 5px;">
            <a href="javascript:void(0)" class="easyui-linkbutton"
               plain="true" outline="true" th:onclick="'showNT('+${notice.id}+')'"
               iconCls="icon-add">显示</a>
        </div>
        </div>
        <br/>
        &nbsp;&nbsp;创建者：<span th:text="${notice.entryNickname}"></span>
        &nbsp;&nbsp;创建时间：<span th:text="${#dates.format(notice.entryTime, 'yyyy-MM-dd HH:mm:ss')}"></span><br/>
        <textarea style='width: 90%' th:text="${notice.noticeContent}" rows="5"></textarea>
    </div>
    </div>
</div>
</body>
</html>
